package com.wawei.seeds;

import android.app.Application;

import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool;
import com.bumptech.glide.load.engine.cache.LruResourceCache;

/**
 * Created by parker on 15/6/7.
 */
public class SeedsApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Glide.setup(new GlideBuilder(this)
                .setMemoryCache(new LruResourceCache(20 * 1024 * 1024))
                .setBitmapPool(new LruBitmapPool(20 * 1024 * 1024)));
    }
}
